<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>APP包文件上传</title>
</head>
<body>
<h1>APP包文件上传</h1>
<table border="1" id="table_refresh" th:fragment="table_refresh">
    <tr>
        <th>文件路径</th>
        <th>版本号</th>
        <th>版本名称</th>
        <th>更新内容</th>
        <th>是否强制更新</th>
        <th>状态（1:启用/0:停用）</th>
    </tr>
    <tr  th:each="appFileLoadList,list : ${appFileLoadList}" >
        <td th:text="${appFileLoadList.FILEURL}"></td>
        <td th:text="${appFileLoadList.VERSIONNUMBER}"></td>
        <th th:text="${appFileLoadList.VERSIONNAME}"></th>
        <th th:text="${appFileLoadList.CONTENT}"></th>
        <th th:text="${appFileLoadList.FORCEUPDATE}"></th>
        <th th:text="${appFileLoadList.STATE}"></th>
    </tr>
</table>
<br/>
<form th:action="@{/file/upload}" method="post" enctype="multipart/form-data">
    版本号:<input type="text" name="VERSIONNUMBER" value=""/><br />
    版本名称:<input type="text" name="VERSIONNAME" value=""/><br />
    更新内容:<input type="text" name="CONTENT" value=""/><br />
    <label>是否强制更新</label>
    <select name="FORCEUPDATE">
        <option value="true">是</option>
        <option value="false">否</option>
    </select><br />
    <label>状态:</label>
    <select name="STATE">
        <option value="1">启用</option>
        <option value="0">停用</option>
    </select><br />
    <input type="file" name="file"/>
    <input type="submit" value="提交"><br />
    <label>结果:</label><span th:text="${res}"></span>
</form>
</body>
</html>